import java.io.IOException;
import java.io.ObjectInputStream;
import java.net.Socket;
import java.util.Scanner;

/**
 * @author lizuhu
 * @description
 * @date 2021/8/31 10:00
 */
@Deprecated
public class ClientGet implements Runnable {
    private ObjectInputStream ois;
    public ClientGet(ObjectInputStream ois) {
        this.ois = ois;
    }
    @Override
    public void run() {
        try {
            while (true){
                String msg = (String) ois.readObject();
                System.out.println(msg);
            }
        }catch (Exception e){
//            e.printStackTrace();
            System.out.println("服务器出现错误！");
        }
    }
}
